﻿namespace TechMadeira.Workflows
{
    class OrderStateDelivered : OrderState
    {
        public override string Name
        {
            get { return "Delivered"; }
        }

        public override void Accept()
        {
            OrderWorkflow.Instance.Current = OrderWorkflow.Instance.Finished;
        }

        public override void Return()
        {
            OrderWorkflow.Instance.Current = OrderWorkflow.Instance.Returned;
        }
    }
}
